package com.weipt.hello;

/**
 * @program: Learning
 * @description: 第一个runnable
 * @Company: 终生学习
 * @author: peter.wei
 * @create: 2020-07-24 23:43
 **/
public class HelloRunnable implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+"--->"+i);
        }
    }

    public static void main(String[] args) {
        HelloRunnable helloRunnable = new HelloRunnable();
        new Thread(helloRunnable).start();
        new Thread(helloRunnable).start();
        new Thread(helloRunnable).start();
    }
}